import request from '@/utils/request'

// 新增视频
export function addVideoResource(data){
    return request({
        url: '/vms/video/resource/add',
        method: 'post',
        data: data
    })
}

// 新增视频
export function addTxVideoResource(data){
    return request({
        url: '/vms/video/resource/addTx',
        method: 'post',
        data: data
    })
}



// 更新视频
export function updateVideoResource(data){
    return request({
        url: '/vms/video/resource/update',
        method: 'post',
        data: data
    })
}


// 获取分页视频资源列表
export function transcode(id){
    return request({
        url: '/vms/video/resource/transcode',
        method: 'get',
        params: {id}
    })
}

// 删除
export function delResource(id){
    return request({
        url: '/vms/video/resource/del',
        method: 'delete',
        params: {id}
    })
}

// 获取分页视频资源列表
export function getPaginationList(params){
    return request({
        url: '/vms/video/resource/getPaginationList',
        method: 'get',
        params: params
    })
}
